package com.situ.stl.service;

import com.github.pagehelper.PageInfo;
import com.situ.stl.entity.Admin;
import com.situ.stl.vo.AdminVo;

import java.util.List;

public interface AdminService {


    /**
     * 根据手机号查询Admin信息
     * @param phone
     * @return
     */
    Admin getAdminByPhone(String phone);

    List<Admin> select(Admin admin);

    PageInfo searchByPage(Integer page, Integer limit, Admin admin);

    int addAdmin(Admin admin);

    int modifyAdmin(Admin admin);

    int deleteAdmin(Integer id);

    Admin login(Admin admin)throws Exception;

    Admin getByPhone(String phone);

    int edge(Admin admin);

}
